package com.woniu.dao;

import com.woniu.pojo.Pay;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

public interface PayMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Pay record);

    int insertSelective(Pay record);

    Pay selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Pay record);

    int updateByPrimaryKey(Pay record);


    List<Pay> selectByShopId(Integer shopid);

    @Select("select pm.id from person_user pu,areainfo ai,property_manage pm where pu.plot_id=ai.id and pm.village_id=ai.id and pu.id=#{value}")
    Integer selectPropertyIdByUserId(Integer userid);
}